package com.bw.a2209clubshop.base

import androidx.appcompat.widget.Toolbar
import androidx.databinding.ViewDataBinding
import com.bw.a2209clubshop.R

abstract class BaseToolbarActivity <VM:BaseViewModel,VDB:ViewDataBinding>:BaseActivity<VM,VDB>(){
    protected lateinit var mToolbar:Toolbar
    override fun initView() {
        initToolbar()
    }
    private fun initToolbar(){
        mToolbar = mBinding.root.findViewById(R.id.toolbar)
        initToolbar(mToolbar)
        mToolbar.setNavigationOnClickListener { _ ->
            onBackPressed()
        }
    }

    protected open fun initToolbar(toolbar: Toolbar) {

    }

}